package com.xbongbong.pro.index.pojo.dto;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.index.pojo.IndexBoardSaveItemPojo;
import com.xbongbong.pro.statistic.pojo.vo.ChartCategoryInitVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @ClassName IndexBoardSaveSingleConfigAppDTO
 * @Description app-保存首页单个看板配置
 * @Author mengna.Deng
 * @Date 2021/11/23 10:04
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class IndexBoardSaveSingleConfigAppDTO extends BaseDTO {
    private static final long serialVersionUID = 8936326753301386345L;
    /**
     * 启用的列表
     */
    @NotEmpty(message = "{dto.msg.indexBoardSaveConfigApp.enableList.NotEmpty}")
    @Size(min = 1, max = 28, message = "{dto.msg.indexBoardSaveConfigApp.enableList.Size}")
    private List<IndexBoardSaveItemPojo> enableList;
    /**
     * 自定义首页标志，为1表示是，为null或者其他为否
     */
    private Integer customPageFlag;
    /**
     * 看板的alias
     */
    @NotNull
    private String boardAlias;
    /**
     * 仪表盘和图表的集合
     */
    @NotNull
    private ChartCategoryInitVO companyData;
    /**
     * 看板的id
     */
    @NotNull
    private Long refId;
}
